<%@ Page Title="" Language="C#" MasterPageFile="~/SalesOneWeb.Master" AutoEventWireup="true" CodeBehind="AddGroup.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.UserManagement.AddGroup" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../StyleSheets/salesOne_txtstyle.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
       
       
       
    </style>
    <style type="text/css">
        .detailstable
        {
            width: 449px;
        }
        .style5
        {
        }
        .style6
        {
            width: 31px;
        }
        .style7
        {
            width: 57px;
        }
        .style8
        {
            width: 290px;
            height: 23px;
        }
        .style9
        {
            width: 31px;
            height: 23px;
        }
        .style10
        {
            width: 101px;
        }
        .style11
        {
            width: 101px;
            height: 23px;
        }
        </style>
        
        <script language="javascript" type="text/javascript">

        window.onload = function() {

            var msg = document.getElementById('ctl00_MasterMsg');
            if (msg && msg.innerHTML != '')
                showMessageBlock();
        }
        </script>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="detailstable">
        <tr>
            <td class="style5" colspan="4"  >
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
            </td>
        </tr>
        <tr>
            <td class="style10"  >
                Code
                <asp:Label ID="lbAs1" runat="server" Text="*"></asp:Label>
&nbsp;:</td>
            <td class="style6"  >
                <asp:TextBox ID="txtgroupCode" runat="server" CssClass="txtbox"></asp:TextBox>
            </td>
            <td colspan="2">
                <asp:Label ID="lblCode" runat="server" CssClass="lbl"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtgroupCode" Display="Dynamic">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style10"  >
                Name
                <asp:Label ID="lbAs2" runat="server" Text="*"></asp:Label>
&nbsp;:</td>
            <td class="style6"  >
                <asp:TextBox ID="txtGroupName" runat="server" CssClass="txtbox"></asp:TextBox>
            </td>
            <td colspan="2">
                <asp:Label ID="lblName" runat="server" CssClass="lbl"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtGroupName" Display="Dynamic">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style10"  >
                Effective From
                <asp:Label ID="lbAs3" runat="server" Text="*"></asp:Label>
                :</td>
            <td class="style6"  >
                <asp:TextBox ID="txtEffectiveFrom" runat="server" CssClass="txtbox"></asp:TextBox>
                
            </td>
            <td colspan="2">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/images/calander.jpg" />
                <cc1:CalendarExtender ID="txtEffectiveFrom_CalendarExtender" runat="server" 
                    TargetControlID="txtEffectiveFrom" PopupButtonID="Image1" Format="dd/MM/yyyy">
                </cc1:CalendarExtender>
                <asp:Label ID="lblEffectiveFrm" runat="server" CssClass="lbl"></asp:Label>
                
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtEffectiveFrom" Display="Dynamic">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEffectiveFrom" Display="Dynamic" 
                    
                    
                    
                    ValidationExpression="^(([0-2]\d|[3][0-1])\/([0]\d|[1][0-2])\/[2][0]\d{2})$|^(([0-2]\d|[3][0-1])\/([0]\d|[1][0-2])\/[2][0]\d{2}\s([0-1]\d|[2][0-3])\:[0-5]\d\:[0-5]\d)$">*</asp:RegularExpressionValidator>
                
            </td>
        </tr>
        <tr>
            <td class="style11">
                Effective To
                <asp:Label ID="lbAs4" runat="server" Text="*"></asp:Label>
                :</td>
            <td class="style9"  >
                <asp:TextBox ID="txtEffectiveTo" runat="server" CssClass="txtbox"></asp:TextBox>
               
            </td>
            <td colspan="2" class="style8">
                <asp:Image ID="Image4" runat="server" ImageUrl="~/images/calander.jpg" />
                 <cc1:CalendarExtender ID="txtEffectiveTo_CalendarExtender" runat="server" 
                    TargetControlID="txtEffectiveTo" PopupButtonID="Image4" Format="dd/MM/yyyy">
                </cc1:CalendarExtender>
                <asp:Label ID="lblEffectiveTo" runat="server" CssClass="lbl"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtEffectiveTo" Display="Dynamic">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="txtEffectiveTo" Display="Dynamic" 
                    
                    
                    
                    ValidationExpression="^(([0-2]\d|[3][0-1])\/([0]\d|[1][0-2])\/[2][0]\d{2})$|^(([0-2]\d|[3][0-1])\/([0]\d|[1][0-2])\/[2][0]\d{2}\s([0-1]\d|[2][0-3])\:[0-5]\d\:[0-5]\d)$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td   colspan="4" class="pix8">
            </td>
        </tr>
        <tr>
            <td   colspan="3" class="style7">
                <table cellpadding="0" cellspacing="0"  >
                    <tr>
                        <td >
                <asp:Button ID="btnCreate" runat="server" onclick="btnCreate_Click" 
                   OnClientClick="validationSummery();" Text="Create" CssClass="btn"/>
                    
                   
                        </td>
                        <td>
                         <asp:Button ID="btnCancel" runat="server" Text="Cancel" 
                    onclick="btnCancel_Click" CausesValidation="False" 
                    CssClass="btn" />
                        </td>
                    </tr>
                </table>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
